﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

/**
 * 创建时间：2014/9/24 11:20:57
 * 作者：yong.blackcore
 * Email：itblackhole@outlook.com
 * QQ：50404503
 */
namespace SurfaceAd.Entities
{
    internal sealed class GeolocatorInfo
    {
        public GeolocatorInfo()
        {
            this.Latitude = -1;
            this.Longitude = -1;
            this.Altitude = -1;
            this.Accuracy = -1;
        }

        /// <summary>
        /// 纬度
        /// </summary>
        public double Latitude { get; set; }

        /// <summary>
        /// 经度
        /// </summary>
        public double Longitude { get; set; }

        /// <summary>
        /// 海拔
        /// </summary>
        public double Altitude { get; set; }

        /// <summary>
        /// 位置精度
        /// </summary>
        public double Accuracy { get; set; }


        public override string ToString()
        {
            StringBuilder sb = new StringBuilder();
            sb.AppendLine("GeolocatorInfo");
            //            
            sb.Append("Latitude=").Append("\t").AppendLine(Latitude.ToString());
            sb.Append("Longitude=").Append("\t").AppendLine(Longitude.ToString());
            sb.Append("Altitude=").Append("\t").AppendLine(Altitude.ToString());
            sb.Append("Accuracy=").Append("\t").AppendLine(this.Accuracy.ToString());
            return sb.ToString();
        }
    }
}
